import request from '@/utils/request'

// 查询充电枪列表
export function listCharge_station_gun(query) {
  return request({
    url: '/charge/charge_station_gun/list',
    method: 'get',
    params: query
  })
}

// 查询充电枪详细
export function getCharge_station_gun(id) {
  return request({
    url: '/charge/charge_station_gun/' + id,
    method: 'get'
  })
}

// 新增充电枪
export function addCharge_station_gun(data) {
  return request({
    url: '/charge/charge_station_gun',
    method: 'post',
    data: data
  })
}

// 修改充电枪
export function updateCharge_station_gun(data) {
  return request({
    url: '/charge/charge_station_gun',
    method: 'put',
    data: data
  })
}

// 删除充电枪
export function delCharge_station_gun(id) {
  return request({
    url: '/charge/charge_station_gun/' + id,
    method: 'delete'
  })
}
